﻿#ifndef MAINFRAME_H
#define MAINFRAME_H

#include "dragable_shadow_widget.h"
#include "image_push_button.h"


class SystemMenu;

class MainWindow : public DragableShadowWidget
{
    Q_OBJECT

public:

    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:

    // widgets
    ImagePushButton *m_sysbtn_close;
    ImagePushButton *m_sysbtn_max;
    ImagePushButton *m_sysbtn_min;
    ImagePushButton *m_sysbtn_restore;
    ImagePushButton *m_sysbtn_menu;

    // UI相关
    void initUI();
    void setupUI();

    void createConnections();


private slots:

    void onMinBtnClicked();
    void onMaxBtnClicked();
    void onRestoreBtnClicked();
    void onCloseBtnClicked();
};

#endif // MAINFRAME_H
